package com.wva.user.enums;

import lombok.AllArgsConstructor;

/**
 * @Author: hong
 * @Date: 2025/2/9 23:20:23
 */
@AllArgsConstructor
public enum RedisKey {
    /**
     * 用户的粉丝的集合
     */
    FOLLOWER_SET("user:%s:follower"),

    /**
     * 用户关注的人的集合
     */
    FOLLOWING_SET("user:%s:following");

    private final String formatString;

    public String format(Object... args) {
        return String.format(this.formatString, args);
    }

}
